<?php
if(!isset($_SESSION)){
  session_start();
}
// script PHP interrogation Base de donnees pour reponse a la requette AJAX
require_once('../../Connections/microassur.php');
include ("config.php");
// Connexion a la base de donnees  
	  mysql_select_db($database_microassur, $microassur);
	$QuestionBase = "select * from tarif where Identifiant_formule='".$_SESSION['formule']."'" ;
	$result_recherche=mysql_query($QuestionBase,$microassur) or die (mysql_error());
	$rep=mysql_fetch_array($result_recherche);
	if($_POST['val_sel']=='A');
	if($_POST['val_sel']=='M')$_SESSION['tarif']=$rep['Taux_echeance_mensuel'];
	if($_POST['val_sel']=='T')$_SESSION['tarif']=$rep['Taux_echeance_trimestriel'];
	if($_POST['val_sel']=='S')$_SESSION['tarif']=$rep['Taux_echeance_semestriel'];

// construction de la liste deroulante
?>